import platform

if platform.system() == 'Windows':
    coding_type = 'gbk'
else:
    coding_type = 'utf-8'


def decode(ss: bytes):
    try:
        ret = ss.decode('utf-8')
    except:
        ret = ss.decode('gbk')
    return ret


def is_windows_system():
    if platform.system() == 'Windows':
        ret = 'gbk'
    else:
        ret = 'utf-8'
    return ret
